import React from "react";
import Svg from "../Svg";
import { SvgProps } from "../types";

export const LinkIcon: React.FC<React.PropsWithChildren<SvgProps>> = (props) => {
  return (
    <Svg viewBox="0 0 25 25" {...props}>
      <mask
        id="mask0_8159_40477"
        style={{ maskType: "alpha" }}
        maskUnits="userSpaceOnUse"
        x="0"
        y="0"
        width="25"
        height="25"
      >
        <rect x="0.5" y="0.0424805" width="24" height="24" fill="#D9D9D9" />
      </mask>
      <g mask="url(#mask0_8159_40477)">
        <path
          d="M7.5 17.0425C6.11667 17.0425 4.9375 16.555 3.9625 15.58C2.9875 14.605 2.5 13.4258 2.5 12.0425C2.5 10.6591 2.9875 9.47998 3.9625 8.50498C4.9375 7.52998 6.11667 7.04248 7.5 7.04248H10.5C10.7833 7.04248 11.0208 7.13831 11.2125 7.32998C11.4042 7.52165 11.5 7.75915 11.5 8.04248C11.5 8.32581 11.4042 8.56331 11.2125 8.75498C11.0208 8.94665 10.7833 9.04248 10.5 9.04248H7.5C6.66667 9.04248 5.95833 9.33415 5.375 9.91748C4.79167 10.5008 4.5 11.2091 4.5 12.0425C4.5 12.8758 4.79167 13.5841 5.375 14.1675C5.95833 14.7508 6.66667 15.0425 7.5 15.0425H10.5C10.7833 15.0425 11.0208 15.1383 11.2125 15.33C11.4042 15.5216 11.5 15.7591 11.5 16.0425C11.5 16.3258 11.4042 16.5633 11.2125 16.755C11.0208 16.9466 10.7833 17.0425 10.5 17.0425H7.5ZM9.5 13.0425C9.21667 13.0425 8.97917 12.9466 8.7875 12.755C8.59583 12.5633 8.5 12.3258 8.5 12.0425C8.5 11.7591 8.59583 11.5216 8.7875 11.33C8.97917 11.1383 9.21667 11.0425 9.5 11.0425H15.5C15.7833 11.0425 16.0208 11.1383 16.2125 11.33C16.4042 11.5216 16.5 11.7591 16.5 12.0425C16.5 12.3258 16.4042 12.5633 16.2125 12.755C16.0208 12.9466 15.7833 13.0425 15.5 13.0425H9.5ZM14.5 17.0425C14.2167 17.0425 13.9792 16.9466 13.7875 16.755C13.5958 16.5633 13.5 16.3258 13.5 16.0425C13.5 15.7591 13.5958 15.5216 13.7875 15.33C13.9792 15.1383 14.2167 15.0425 14.5 15.0425H17.5C18.3333 15.0425 19.0417 14.7508 19.625 14.1675C20.2083 13.5841 20.5 12.8758 20.5 12.0425C20.5 11.2091 20.2083 10.5008 19.625 9.91748C19.0417 9.33415 18.3333 9.04248 17.5 9.04248H14.5C14.2167 9.04248 13.9792 8.94665 13.7875 8.75498C13.5958 8.56331 13.5 8.32581 13.5 8.04248C13.5 7.75915 13.5958 7.52165 13.7875 7.32998C13.9792 7.13831 14.2167 7.04248 14.5 7.04248H17.5C18.8833 7.04248 20.0625 7.52998 21.0375 8.50498C22.0125 9.47998 22.5 10.6591 22.5 12.0425C22.5 13.4258 22.0125 14.605 21.0375 15.58C20.0625 16.555 18.8833 17.0425 17.5 17.0425H14.5Z"
          fill={props.color || "#31D0AA"}
        />
      </g>
    </Svg>
  );
};

export default LinkIcon;
